<template>
  <el-row type="flex" align="middle" style="height:40px;width:100%">
    <el-col>{{ data.name }}</el-col>
    <el-col>
      <el-row type="flex" justify="end">
        <span>{{ data.manager }}</span>
        <el-dropdown>
          <span class="el-dropdown-link">
            操作<i class="el-icon-arrow-down el-icon--right"></i>
          </span>
          <el-dropdown-menu slot="dropdown">
            <!-- 把下拉菜单的增删改操作放到父组件中去操作 -->
            <slot></slot>
          </el-dropdown-menu>
        </el-dropdown>
      </el-row>
    </el-col>
  </el-row>
</template>

<script>
export default {
  name: 'TreeTool',
  props: {
    data: {
      type: Object,
      default: () => ({}),
      require: true
    }
  },
  data() {
    return {

    }
  },
  computed: {

  },
  methods: {
  }
}
</script>

<style lang="scss" scoped>
.el-dropdown-link {
  margin-left: 10px;
}
</style>
